//webpack.config.js
var path = require('path');

module.exports = {
  entry: {
    bundle:"./src/web/entry.js",
    banner:"./src/web/banner.js"
  },
  output: {
    path: path.join(__dirname, '/bundle'),
    filename: '[name].js',
  },
  module: {
    loaders: [
    {
      test: /(\.jsx|\.js)$/,
      loader: 'babel?presets[]=es2015&presets[]=react',
      exclude: /node_modules/
    },
    {
        test: /\.(png|jpg)$/,
        loader: 'url-loader?limit=8192&name=./img/[hash].[ext]'
    },
    {
      test: /\.css$/,
      loader: 'style-loader!css-loader?modules'
    }
    ]
  }
}